package com.lin.fengxiu.core.configuration;

import com.lin.fengxiu.core.hack.AutoPrefixUrlMapping;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.web.servlet.WebMvcRegistrations;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping;

/**
 * @ClassName AutoPrefixConfiguration
 * @Description TODO url地址转发
 * @Author wushaopei
 * @Date 2021/3/7 15:17
 * @Version 1.0
 */
@Component
public class AutoPrefixConfiguration implements WebMvcRegistrations {

    @Override
    public RequestMappingHandlerMapping getRequestMappingHandlerMapping() {
        return new AutoPrefixUrlMapping();
    }
}
